package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.ShopBalance;

/**
 * 商户余额Mapper接口
 * 
 * @author wxy
 * @date 2024-09-18
 */
public interface ShopBalanceMapper 
{
    /**
     * 查询商户余额
     * 
     * @param id 商户余额主键
     * @return 商户余额
     */
    public ShopBalance selectShopBalanceById(Long id);
    public ShopBalance selectShopBalanceByShopId(Long shopId);

    /**
     * 查询商户余额列表
     * 
     * @param shopBalance 商户余额
     * @return 商户余额集合
     */
    public List<ShopBalance> selectShopBalanceList(ShopBalance shopBalance);

    /**
     * 新增商户余额
     * 
     * @param shopBalance 商户余额
     * @return 结果
     */
    public int insertShopBalance(ShopBalance shopBalance);

    /**
     * 修改商户余额
     * 
     * @param shopBalance 商户余额
     * @return 结果
     */
    public int updateShopBalance(ShopBalance shopBalance);
    public int updateShopBalanceByMid(ShopBalance shopBalance);

    /**
     * 删除商户余额
     * 
     * @param id 商户余额主键
     * @return 结果
     */
    public int deleteShopBalanceById(Long id);

    /**
     * 批量删除商户余额
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopBalanceByIds(Long[] ids);
}
